package org.pine.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.pine.model.enums.StatusEnum;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author pine
 * @since 2025-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pine_user")
public class User extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -7959235087723037922L;

    /**
     * 用户账号
     */
    private String loginAccount;

    /**
     * 用户名称
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 电话
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 启用时间
     */
    private LocalDateTime enableTime;

    /**
     * 停用时间
     */
    private LocalDateTime disableTime;

    /**
     * 状态:0=无效,1=有效
     */
    private StatusEnum status;

    /**
     * 备注
     */
    private String remark;
}
